﻿


 using System;

  using EnvDTE;

 using EnvDTE80;

 using VSLangProj;
 using System.Runtime.Serialization;

 using Microsoft.Practices.RecipeFramework;



namespace SMC.SPALM.References
 {

 [Serializable]

 public class AddProjectsReference : UnboundRecipeReference

   {
         public AddProjectsReference( string recipe )

              : base( recipe )

        {

         }

 

     protected AddProjectsReference( SerializationInfo info, 

            StreamingContext context ) : base( info, context )

       {

         }

  

        public override bool IsEnabledFor( object target )

        {

             if( target is Solution ||

                 target is Project )

           {

                return true;
          }

          else

          {

                return false;

            }

  

         }



         public override string AppliesTo

         {

             get

             {

                return "Solution Folders or Projects";

            }

         }

     }

 }
